package com.b511.swpu.cementbackend.repository;

import com.b511.swpu.cementbackend.entity.MAIN_BlockStructure;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.transaction.annotation.Transactional;

public interface MAIN_BlockStructureRepository extends JpaRepository<MAIN_BlockStructure, String>,
        JpaSpecificationExecutor<MAIN_BlockStructure> {

    @Transactional
    void deleteByRelationCode(String relationCode);

    @Transactional
    void deleteByBsCode(String bsCode);

    MAIN_BlockStructure findByRelationCode(String relationCode);

    MAIN_BlockStructure findByBsCode(String bsCode);

}
